<?php

class Project_Debug {
	
	public static function printAndStop($object, $isExit = true) {
		echo '<h3>Debug</h3><pre>';
		if (is_string($object)) echo htmlspecialchars($object);
		else print_r($object);
		echo '</pre>';
		if ($isExit) die();
	} 
}